4D Pack v13.2AP Create method |
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
4D Pack v13.2
AP Create method
AP Create method
The AP Create method command lets you add a project method in a 4D database structure (interpreted databases only). Pass the name of the method in methodName. This name can be up to 31 characters long. It can contain any combination of letters, numbers, spaces and underlines with respect to the standard 4D objects naming rules. If the name contains more than 31 characters, it will be truncated to 31. The propertiesArray parameter allows defining the method properties. It must have been declared previously as a longint array and must contain 4 items:
Pass a BLOB containing the text of the method in methodCode. If you use the TEXT TO BLOB command to fill the BLOB, pass Mac C string (or 0) in the third parameter of this command. In methodCode, you can pass the text of a method that has been stored in a file via the Export Method... menu command (in this case, the text includes the commands, constants, etc. as references (tokens) and not words). In folderName, pass the name of the Explorer folder in which the method will be created. These folders are managed on the Home page of the Explorer window and allow you to organize the objects in a customized manner. This parameter is optional; if it is omitted, the method will be created in the “Default Project Methods” folder. If the operation is completed successfully, the function returns 0. Otherwise, it returns an error code: Note: This command does not work when it is executed from a compiled application that has been merged with 4D Desktop. |
PROPERTIES
Product: 4D Pack
INDEX HISTORY
Modified: 4D Pack v11.3 SEE ALSO
AP Does method exist |
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||